package com.example.mydesignmodule.factory;

import android.util.SparseArray;

/**
 * @author tgw
 * @date 2021/2/26
 * @describe
 */
class CarRunMain {

    public static void main(String[] args) {
        Car car = CarFactory.createdCar(BaoMaCar.class);
        car.name();
        car.carType().type();
        car = CarFactory.createdCar(BenCiCar.class);
        car.name();
        car.carType().type();

//         SparseArray<Car> sBusinessViews = new SparseArray<>();
//         sBusinessViews.put(1,new BaoMaCar());

    }
}
